<?php

namespace catchAdmin\phone\controller;

use catchAdmin\phone\request\notice\readRequest;
use catcher\CatchResponse;

class Notice extends LoginCatchController
{


    public function __construct()
    {
        parent::__construct();

        $this->model = (new \catchAdmin\phone\model\Notice());
    }


    public function index()
    {
        $param = request()->param();

        return CatchResponse::success($this->model->indexData($param));
    }


    /**
     * 已读
     */
    public function read(readRequest $request)
    {
        $param = request()->param();

        return CatchResponse::success($this->model->read($param));
    }

}
